package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.StorageRecord;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface StorageRecordMapper {
    //分页查询入库记录列表
    List<StorageRecord> getPage(@Param("entity") StorageRecord condition, @Param("offset") Integer offset, @Param("pageSize") Integer pageSize);

    //查询入库记录列表总条数
    public Integer count(@Param("entity") StorageRecord condition);

    //根据id查询入库记录
    public StorageRecord findById(Integer id);
    //新增入库记录
    public int insert(StorageRecord storageRecord);

    //修改入库记录
    public int update(StorageRecord storageRecord);

    StorageRecord getBySrCode(String srCode);

    //根据id删除入库记录
    public int deleteById(Integer id);
}
